<template>
	<view>
		<view class="manage_box">
			<view class="manage_box_outer">
				<view class="manage_list" v-for="(item, index) in listData" :key="index" @click="team(item)">
					<image class="img" :src="src + item.logo_image" mode="aspectFit"></image>
					<text>{{item.name}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	var util5 = require('@/util/request5.js');
	export default {
		data() {
			return {
				listData: [],
				src: '',
			}
		},
		onLoad() {
			this.src = util5.realm_name.substr(0, util5.realm_name.length - 5)
			const menu = uni.getStorageSync('menu');
			this.listData = menu[0].childlist[3].childlist
		},
		methods: {
			// 团队管理
			team(item) {
				uni.navigateTo({
					url: item.path
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.manage_box {
		display: flex;
		flex-direction: column;
		padding: 70rpx 30rpx 30rpx 30rpx;

		.manage_box_outer {
			// background-color: #eeeeee;
			display: flex;
			flex-wrap: wrap;

			.manage_list {
				display: flex;
				flex-direction: column;
				align-items: center;
				min-width: 25%;
				margin-bottom: 20rpx;

				.img {
					width: 80rpx;
					height: 80rpx;
				}
			}
		}

		text {
			font-size: 24rpx;
		}
	}
</style>